package com.edu.his.controller;

import com.edu.his.domain.Disease;
import com.edu.his.service.DiseaseService;
import com.edu.his.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 描述：
 * 创建人：飘
 * 创建时间：2024/12/19
 **/
@RestController
@RequestMapping("/disease")
@CrossOrigin(value = "*",maxAge = 3600)
public class DiseaseController {
    @Autowired
    private DiseaseService diseaseService;

    @PostMapping("/selectdisease")
    public R selectDisease(@RequestBody  Disease disease)
    {
        return  this.diseaseService.selectDisease(disease);
    }
}
